<?php
class Controller{

		protected function success($msg,$url){
			$str=<<<str
	<script type="text/javascript">
		alert("{$msg}");
		location.href="{$url}";
	</script>
str;
			echo $str;die;
		}


		protected function error($msg){
			$str=<<<str
		<script type="text/javascript">
			alert("{$msg}");
			history.back();
		</script>

str;
			echo $str;die;
		}

		protected function display($tpl){
				include './template/'.$tpl.'.html';
			}


		}



?>
